<?php

	$data = array();
	$i = 0;
	if ($handle = opendir('./images')) {
	    while (false !== ($file = readdir($handle))) {
	        if ($file != "." && $file != ".." && $file != ".DS_Store") {
							$data[$i] = "images/".$file;
/* 							echo $data[$i]; */
							$i++;
	        };
	    };
	    closedir($handle);
	};
	echo json_encode($data);


?>